﻿<Page x:Class="dot_in.HTWKAidStation.GUI.Views.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:HTWKAidStation"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      x:Name="Asdqwe"
      mc:Ignorable="d">
    <Page.Resources>
        <CollectionViewSource Source="{Binding ElementName=Asdqwe, Path=Data}"
                              x:Key="ViewSource"
                              IsSourceGrouped="True" />
    </Page.Resources>
    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <ListView ItemsSource="{Binding ElementName=Asdqwe, Path=Data}">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <ContentPresenter Content="{Binding Key}" />
                        <ListView ItemsSource="{Binding Items}">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <ContentPresenter Content="{Binding}" />
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                    </StackPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </Grid>
</Page>
